package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@TableName("main_process_order_quota_detail")
public class ProcessOrderQuotaDetailQuery {

    @WhereType(filed = "main_id")
    private Long mainId;

    @WhereType(filed = "work_code",tableName = "main_process_order",type = WhereTypeEnum.LIKE)
    private String workCode;

    @WhereType(filed = "process_name")
    private String processName;

    @WhereType(filed = "project_no",tableName = "main_project",type = WhereTypeEnum.LIKE)
    private String projectNo;


    @WhereType(func = "main_process_order_quota_detail.main_id in (select main_flow.target_dept_id from main_flow where main_flow.id = {1})")
    private Long flowId;

}
